package com.cn.tous.auth.event;

import org.springframework.security.authentication.AuthenticationEventPublisher;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;

/**
 * @author mengwei
 * @description NullEventPublisher
 * @createDate 2025/7/29 11:22
 */
public class NullEventPublisher implements AuthenticationEventPublisher {
    @Override
    public void publishAuthenticationSuccess(Authentication authentication) {
        System.out.println("publishAuthenticationSuccess");

    }

    @Override
    public void publishAuthenticationFailure(AuthenticationException exception, Authentication authentication) {
        System.out.println("publishAuthenticationFailure");
    }
}
